<script setup lang="ts">
	import { ref, watch } from 'vue'
	import { getOthersApi } from '@/api/others'
	import { apiName, apiUrl } from '@/config'
	import { fullUrl} from '@/utils/common'
	import { onShow,onLoad } from '@dcloudio/uni-app'
	
	const list = ref([])
	
	onLoad(() => {
	     RichTextPage()
	 })
	const RichTextPage = () => {
		uni.request({
		    url: apiUrl + apiName + '/common/setting', 
		    method: 'POST',
		    data: {},
		    header: {
		        'Content-Type': 'application/json'
		    },
		    success:(res)=> {
		        // 请求成功时处理返回的数据
		        console.log('999999', res.data);
				list.value = res.data.result.agreement;
				console.log('000',fullUrl(list.value.customer_service));
		    },
		    fail: function (err) {
		        // 请求失败时处理错误
		        console.error('666666', err);
		    }
		});
	}
</script>
<template>
	<view class="rich-text">
		<image :src="fullUrl(list.customer_service)" mode="widthFix"></image>
	</view>
</template>
<style>
   .rich-text {
     padding: 20rpx 10rpx;
   }
</style>

